class QuestionEntity {
  String? content;
  String? createTime;
  int? id;
  int? open;
  int? sort;
  String? title;
  int? type;

  QuestionEntity(
      {this.content,
        this.createTime,
        this.id,
        this.open,
        this.sort,
        this.title,
        this.type});

  QuestionEntity.fromJson(Map<String, dynamic> json) {
    content = json['content'];
    createTime = json['createTime'];
    id = json['id'];
    open = json['open'];
    sort = json['sort'];
    title = json['title'];
    type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['content'] = this.content;
    data['createTime'] = this.createTime;
    data['id'] = this.id;
    data['open'] = this.open;
    data['sort'] = this.sort;
    data['title'] = this.title;
    data['type'] = this.type;
    return data;
  }
}

class QuestionType {
  int? id;
  String? name;
  int? open;
  int? sort;
  String? info;

  QuestionType({this.id, this.name, this.open, this.sort,this.info});

  QuestionType.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    open = json['open'];
    sort = json['sort'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['open'] = this.open;
    data['sort'] = this.sort;
    return data;
  }
}
